using Jurassic.Library;

namespace Kiwi.Node.Modules.Builtin
{
    public class JsRuntime: BuiltinModuleObject
    {
        public JsRuntime(IApplication application) : base(application)
        {
            //this["isArray"] = FunctionInstance
        }

        [JSFunction(Name = "isArray", Flags = JSFunctionFlags.None)]
        public bool IsArray(object array)
        {
            return array is ArrayInstance;
        }
    }
}